//导入mongoose
const mongoose = require('mongoose');
//创建文档的结构对象
//设置集合中文文档的属性以及属性值的属性
let MovieSchema = new mongoose.Schema({
  //标题
  title: String,
  director: String,
});
//创建模型对象  对文档操作的封装对象
let MovieModel = mongoose.model('movie', MovieSchema);
module.exports = MovieModel;
//我爱你的妈咪
